<!DOCTYPE html>
<html>
<head>
	<title>giscloud代码生成器</title>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
	<link rel="shortcut icon" href="/static/images/favicon.ico"/>
	<link rel="bookmark" href="/static/images/favicon.ico"/>
	<link rel="stylesheet" href="/static/css/font-awesome.min.css">
	<link rel="stylesheet" href="/static/css/main.css">
	<link rel="stylesheet" href="/static/css/bootstrap.min.css">
	<link rel="stylesheet" href="/static/plugins/bootstrap-table/jquery.treegrid.min.css">
	<link rel="stylesheet" href="/static/plugins/bootstrap-table/bootstrap-table.min.css">
	<link rel="stylesheet" href="/static/plugins/bootstrap-select/bootstrap-select.min.css">
	<!--<link href="https://cdn.bootcss.com/bootstrap-table/1.11.1/bootstrap-table.min.css" rel="stylesheet">-->
	<!--<link rel="stylesheet" href="https://cdn.bootcss.com/jquery-treegrid/0.2.0/css/jquery.treegrid.min.css"></head>-->
<body>
<style>
	.bootstrap-table .fixed-table-pagination>.pagination {
		float: right;
	}
	.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .loading-text {
		font-size: 14px
	}
</style>
<div id="rrapp">
	<div class="grid-btn" style="padding-left: 15px;">
		<div class="form-group">
			<select id="sel" v-model="select_list" title="请选择数据库" data-live-search="true" multiple>
				<option v-bind:value="item.id" v-for="item in result_list">
					{{item.name}}
				</option>
			</select>
			&nbsp;&nbsp;<a class="btn btn-primary" @click="query"><i class="fa fa-search-plus">查询</i></a>
			<a class="btn btn-primary" @click="generator"><i class="fa fa-file-code-o"></i>&nbsp;生成代码</a>
		</div>
	</div>
</div>
<div class="container" style="width: 100%;height: 100%;">
	<table id="table" class="table-bordered"></table>
</div>
<div class="modal fade" id="projectEditModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
	<div class="modal-dialog" role="document">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				<h4 class="modal-title">项目信息</h4>
			</div>
			<div class="modal-body">
				<form id="projectEditForm" class="form-horizontal">
					<input type="hidden" id="operateMode"/>
					<input type="text" class="form-control" id="tableNames" name="tableNames" style="display:none;" placeholder="隐藏域：ID">
					<div class="form-group">
						<label class="col-sm-3 control-label">父项目名称</label>
						<div class="col-sm-9">
							<input type="text" id="parentProjectName" name="parentProjectName" class="form-control" placeholder="如：giscloud-yun-parent">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">子项目名称</label>
						<div class="col-sm-9">
							<input type="text" id="projectName" name="projectName" class="form-control" placeholder="如：giscloud-api">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">包名路径</label>
						<div class="col-sm-9">
							<input type="text" id="packageName" name="packageName" class="form-control" placeholder="如：com.giscloud">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">模块名称</label>
						<div class="col-sm-9">
							<input type="text" id="moduleName" name="moduleName" class="form-control" placeholder="如：api">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">引用组件</label>
						<div class="col-sm-9">
							<label class="checkbox-inline">
								<input type="checkbox" name="rocketmq"  value="rocketmq"> rocketmq
							</label>
							<label class="checkbox-inline">
								<input type="checkbox" name="execel"  value="execel"> execel
							</label>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">redis缓存</label>
						<div class="col-sm-9">
							<label class="checkbox-inline">
								<input type="radio" name="redis"  value="redis,standalone"> 单机模式
							</label>
							<label class="checkbox-inline">
								<input type="radio" name="redis"  value="redis,cluster"> 集群模式
							</label>
							<label class="checkbox-inline">
								<input type="radio" name="redis"  value="redis,sentinel"> 哨兵模式
							</label>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">分布式事物</label>
						<div class="col-sm-9">
							<label class="checkbox-inline">
								<input type="checkbox" name="dts"  value="dts"> 支持
							</label>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">生成前端代码</label>
						<div class="col-sm-9">
							<label class="checkbox-inline">
								<input type="checkbox" name="front"  value="front"> 是
							</label>
						</div>
					</div>
				</form>
			</div>
			<div class="modal-footer" id="submitProject">
				<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
				<button type="button" id="submitBtn" class="btn btn-primary" data-loading-text="提交中...">提交</button>
			</div>
		</div>
	</div>
</div>
</body>
<script src="/static/libs/jquery.min.js"></script>
<script src="/static/libs/vue.min.js"></script>
<script src="/static/libs/bootstrap.min.js"></script>
<script src="/static/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/static/plugins/bootstrap-table/bootstrap-table-treegrid.js"></script>
<script src="/static/plugins/bootstrap-table/jquery.treegrid.min.js"></script>
<script src="/static/plugins/bootstrap-table/bootstrap-table-zh-CN.js"></script>
<script src="/static/plugins/bootstrap-select/bootstrap-select.min.js"></script>

<script src="/static/js/common.js"></script>
<script src="/static/js/generator1.js"></script>
</html>